package com.cjs.filter;

public class HtmlFilter implements Filter {

	@Override
	public void doFilter(Request request, Response response , FilterChain filterChain) {
		String str = request.getRequestStr();
		request.setRequestStr(str.replace("<script>", "-").replace("</script>", "-"));
		
		filterChain.doFilter(request, response/*, filterChain*/);
		
		response.setResponseStr(response.getResponseStr() + "HtmlFilter-");
	}

}
